#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
}

void Widget::on_textEdit_textChanged()
{
    ui->label->setText(ui->textEdit->toPlainText());
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_textEdit_2_selectionChanged()
{
    qDebug() << "on_textEdit_2_selectionChanged";
}

void Widget::on_textEdit_4_copyAvailable(bool b)
{
    qDebug() << "on_textEdit_4_copyAvailable " << b;
}

void Widget::on_textEdit_3_cursorPositionChanged()
{
    qDebug() << "on_textEdit_3_cursorPositionChanged";
}


void Widget::on_textEdit_3_redoAvailable(bool b)
{
     qDebug() << "on_textEdit_3_redoAvailable " << b ;
}

void Widget::on_textEdit_3_undoAvailable(bool b)
{
     qDebug() << "on_textEdit_3_redoAvailable " << b;
}
